<?php

namespace Hilaoyu\LaravelExtend\Services\ThirdPartyLogin;


use Hilaoyu\LaravelExtend\Model;

class AbstractModelUsersThirdPartyQq extends Model
{
    protected $table = 'users_third_party_qq';

    protected $primaryKey = 'unionid';
    protected $keyType = 'varchar';

    protected $fillable = [
        'unionid',
        'openid',
        'user_id',
        'nickname',
        'gender',
        'province',
        'city',
        'year',
        'headimgurl',
    ];

    public function getValidationRules()
    {
        $rules = [
            'unionid' => 'required|string|max:64',//|exists:'. AppModel::getTableCon() .',app_id',
            'user_id' => 'string|max:36',//|exists:'. UserModel::getTableCon() .',user_id',
        ];

        return $rules;
    }

}
